package cloud.maque.admin.service;


import cloud.maque.admin.domain.entity.MqDepartment;
import cloud.maque.admin.domain.vo.MqDepartmentVo;
import cloud.maque.framework.common.request.PaginateDataResquest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author zhuyf
 * @description 部门表服务层
 * @date 2023-03-17
 */
public interface MqDepartmentService extends IService<MqDepartment> {


    MqDepartment saveDept(MqDepartment department);

    boolean update(MqDepartment department);

    boolean delete(String deptId);

    Integer getByParentId(String deptId);

    /**
     * 分页查询
     *
     * @param paginateDataResquest
     * @return
     */
    PageInfo<MqDepartment> page(PaginateDataResquest<MqDepartment> paginateDataResquest);

    List<MqDepartment> Tree(String parentId,String tenantId);

    MqDepartmentVo Detail(String deptId);

}
